package fr.umlv.m2.jee.pmlv.persistence.note;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import fr.umlv.m2.jee.pmlv.persistence.subject.AbstractTheme;

@SuppressWarnings("serial")
@Entity
@Table(name="User__ThemeNote")
public class UserThemeNote implements Serializable {
	@Id
	@GeneratedValue
	@Column(name="userThemeNote_id")
	private long id;
	
	@Column(name="userThemeNote_uid")
	private String uid;
	
	@OneToOne
	@JoinColumn(name="theme_id")
	private AbstractTheme theme;

        @Column(name="userThemeNote_note")
	private float note;

	public void setId(long id) {
		this.id = id;
	}

	public long getId() {
		return id;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}

	public String getUid() {
		return uid;
	}

	public void setTheme(AbstractTheme theme) {
		this.theme = theme;
	}

	public AbstractTheme getTheme() {
		return theme;
	}

        public float getNote() {
            return note;
        }

        public void setNote(float note) {
            this.note = note;
        }
}
